package com.zhangxu.microservice.system.biz.convert;

import com.zhangxu.microservice.system.biz.dto.EmployeeRoleDTO;
import com.zhangxu.microservice.system.dao.entity.EmployeeRoleDO;
import org.mapstruct.Mapper;

/**
 * 员工角色关系对象转换接口
 */
@Mapper(componentModel = "spring")
public interface EmployeeRoleConverter {

    /**
     * EmployeeRoleDO 转 EmployeeRoleDTO
     *
     * @param employeeRoleDO 员工角色关系实体
     * @return 员工角色关系DTO
     */
    EmployeeRoleDTO toEmployeeRoleDTO(EmployeeRoleDO employeeRoleDO);

    /**
     * EmployeeRoleDTO 转 EmployeeRoleDO
     *
     * @param employeeRoleDTO 员工角色关系DTO
     * @return 员工角色关系实体
     */
    EmployeeRoleDO toEmployeeRoleDO(EmployeeRoleDTO employeeRoleDTO);
}